﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace TCKQKL.Service.DataContract
{
    /// <summary>
    /// Personal information of the investor
    /// </summary>
    [DataContract()]
    public sealed class InvestorDataProfileModel
    {
        private string _accountNo;
        private string _name;
        private string _email;
        private DateTime _birthday;
        private string _address;
        private string _phone;
        private string _serviceRegisterd;
        public InvestorDataProfileModel()
        {

        }
        public InvestorDataProfileModel(string accountNo, string name, string email, DateTime birthday, string address, string phone, string serv)
        {
            this._accountNo = accountNo;
            this._name = name;
            this._email = email;
            this._birthday = birthday;
            this._address = address;
            this._phone = phone;
            this._serviceRegisterd = serv;
        }

        [System.Xml.Serialization.XmlElementAttribute(ElementName = "accountNo", Order = 1, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "accountNo", Order = 1)]
        public string accountNo
        {
            // Properties
            get { return _accountNo; }
            set { _accountNo = value; }
        }

        [System.Xml.Serialization.XmlElementAttribute(ElementName = "name", Order = 2, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "name", Order = 2)]
        public string name
        {
            // Properties
            get { return _name; }
            set { _name = value; }
        }

        [System.Xml.Serialization.XmlElementAttribute(ElementName = "email", Order = 3, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "email", Order = 3)]
        public string email
        {
            // Properties
            get { return _email; }
            set { _email = value; }
        }

        [System.Xml.Serialization.XmlElementAttribute(ElementName = "birthday", Order = 4, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "birthday", Order = 4)]
        public DateTime birthday
        {
            // Properties
            get { return _birthday; }
            set { _birthday = value; }
        }

        [System.Xml.Serialization.XmlElementAttribute(ElementName = "address", Order = 5, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "address", Order = 5)]
        public string address
        {
            // Properties
            get { return _address; }
            set { _address = value; }
        }

        [System.Xml.Serialization.XmlElementAttribute(ElementName = "phone", Order = 6, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "phone", Order = 6)]
        public string phone
        {
            // Properties
            get { return _phone; }
            set { _phone = value; }
        }
        [System.Xml.Serialization.XmlElementAttribute(ElementName = "ServiceRegisterd", Order = 7, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "ServiceRegisterd", Order = 7)]
        public string ServiceRegisterd
        {
            get { return _serviceRegisterd; }
            set { _serviceRegisterd = value; }
        }

    }
}
